﻿@using AutoPartsSearch.Web.Extensions
@model AutoPartsSearch.Web.ViewModels.AccountModels.ChangePassword
@{
    ViewBag.Title = "Изменить пароль";
}
<h2 class="title">Изменить пароль</h2>
    @using (Html.BeginForm("ChangePassword", "Home", FormMethod.Post))
    {
        <div id="errors" title="Пожалуйста, исправьте ошибки и попробуйте еще раз.">
            @Html.ValidationSummary(false)
        </div>
                <table class="table-form">
                    <tr>
                        <td>
                            @Html.RequiredLabelFor(model => model.OldPassword)
                        </td>
                        <td>
                            @Html.EditorFor(model => model.OldPassword)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.RequiredLabelFor(model => model.NewPassword)
                        </td>
                        <td>
                            @Html.EditorFor(model => model.NewPassword)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.RequiredLabelFor(model => model.ConfirmPassword)
                        </td>
                        <td>
                            @Html.EditorFor(x => x.ConfirmPassword)
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input class="button fr" type="submit" value="Сохранить" />
                        </td>
                    </tr>
                </table>
    }

